package com.yh.dao;

import java.util.List;

import com.yh.bean.BrowseRecords;
import com.yh.bean.News;
import com.yh.bean.NewsComment;
import com.yh.bean.NewsReply;

public interface NewsDao {
	//查询最新的咨询
	public List<News> queryNews();
	
	//查询游戏详情内容
	public News queryNewsDetails(int news);
	
	//对新闻表中浏览进行记录
	public int updateNews(int news);
	
	//新闻留言
	public int LeaveMessage(NewsComment newsC);
	
	//查询新闻的评论
	public List<NewsComment> queryComment(int news_Id);
	
	//新闻的回复
	public int replyComment(NewsReply newsReply);
	
	//查询回复的内容
	public List<NewsReply> queryReplyComment(int comId);
	
	//增加新闻
	public int addNews(News news);
	
	//删除新闻
	public int deleteNews(int newsId);
	
	//----------------------------------------------------------------------------------------------------
	
	//商品浏览记录的增加
	public int createRecords(BrowseRecords b);
	
	
}
